package cn.wjh.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

/**
 * 收藏对象 tbl_collect
 *
 * @author jiraWu
 * @date 2023-10-21
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("tbl_collect")
public class Collect extends BaseEntity {
	private static final long serialVersionUID = 1L;


	/**
	 * 主键
	 */
	@TableId
	@Excel(name = "主键")
	private Long collectId;


	/**
	 * 业务Id
	 */
	@Excel(name = "业务Id")
	private Long dataId;


	/**
	 * 业务类型
	 */
	@Excel(name = "业务类型")
	private String type;


	/**
	 * 用户Id
	 */
	@Excel(name = "用户Id")
	private Long userId;


	/**
	 * 收藏时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	@Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
	private Date createTime;


	/**
	 * 创建人
	 */
	@Excel(name = "创建人")
	private String createBy;

	@TableField(exist = false)
	private Object data;

}

